package com.wangyazhu.MybatisDemo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@ApiModel(description = "用户实体")
public class User {
    @ApiModelProperty("用编号")
    private Long id;

    @ApiModelProperty("用户姓名")
    private String name;
    @ApiModelProperty("用户年龄")
    private Integer age;

    public User(String name, Integer age) {
        this.name=name;
        this.age=age;
    }
}
